<template>
    <div class="shifts-page">
      <NavBar title="班次 SHIFTS" />
      
      <div class="route-select">
        <div class="select-item">
          <span>我的位置 MY LOCATION</span>
          <span class="arrow">▼</span>
        </div>
        <div class="select-item">
          <span>您要去哪儿 WHERE ARE YOU GOING</span>
          <span class="arrow">▼</span>
        </div>
        <button class="query-btn">查询 QUERY</button>
      </div>
      
      <div class="shift-list">
        <div class="shift-item">
          <div class="bus-number">02号巴士</div>
          <div class="destination">开往 胶架工厂</div>
          <div class="time">30秒</div>
          <div class="terminal">候车站 新物流中心 总站</div>
          <div class="english">Waiting station New DC</div>
        </div>
        
        <div class="shift-item last-shift">
          <div class="bus-number">03号巴士</div>
          <div class="destination">开往 胶架工厂</div>
          <div class="time">末班已过</div>
          <div class="english">THE LAST SHIFT HAS PASSED.</div>
          <div class="terminal">候车站 新物流中心 总站</div>
          <div class="english">Waiting station New DC</div>
        </div>
      </div>
      
      <button class="all-shifts-btn">所有班次 ALL SHIFTS</button>
      
      <BottomNav active="shifts" />
    </div>
  </template>
  
  <script>
  import NavBar from '~/components/NavBar.vue'
  import BottomNav from '~/components/BottomNav.vue'
  
  export default {
    components: {
      NavBar,
      BottomNav
    }
  }
  </script>
  
  <style scoped>
  .shifts-page {
    background: white;
    min-height: 100vh;
  }
  
  .route-select {
    padding: 15px;
  }
  
  .select-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
  }
  
  .arrow {
    color: #999;
  }
  
  .query-btn {
    width: 100%;
    padding: 12px;
    background: #1E90FF;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 5px;
  }
  
  .shift-list {
    padding: 15px;
  }
  
  .shift-item {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
  }
  
  .bus-number {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
  }
  
  .destination {
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  .time {
    color: #1E90FF;
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  .terminal {
    font-size: 14px;
    margin-top: 10px;
  }
  
  .english {
    color: #999;
    font-size: 12px;
  }
  
  .last-shift .time {
    color: #FF4500;
  }
  
  .all-shifts-btn {
    width: calc(100% - 30px);
    margin: 15px;
    padding: 12px;
    background: #1E90FF;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
  }
  </style>